/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package etherblocks.mods.shooter.states.objects;

import com.jme3.math.ColorRGBA;
import com.jme3.math.Vector3f;

/**
 *
 * @author Carl
 */
public class ShotExplosionObject extends ExplosionObject{

    public ShotExplosionObject(){
        super("Textures/effects/flash.png");
        particleEmitter.setImagesX(2);
        particleEmitter.setImagesY(2);
        particleEmitter.setRotateSpeed(4);
        particleEmitter.setSelectRandomImage(true);
        particleEmitter.getParticleInfluencer().setInitialVelocity(new Vector3f(-5, 0, 0));
        particleEmitter.getParticleInfluencer().setVelocityVariation(0.2f);
        particleEmitter.setStartColor(new ColorRGBA(1f, 0.9f, 0f, 1f));
        particleEmitter.setEndColor(new ColorRGBA(1f, 0.1f, 0f, 0.2f));
        particleEmitter.setStartSize(0.2f);
        particleEmitter.setEndSize(0.08f);
        particleEmitter.setLowLife(0.25f);
        particleEmitter.setHighLife(0.25f);
        particleEmitter.setGravity(0, 1, 0);
    }
}
